home *** CD-ROM | disk | FTP | other *** search
- /* Globals.h */
- /* Created 01/01/95 12:01 PM by AppMaker */
-
- #ifndef _H_Globals
- #define _H_Globals
-
- typedef struct {
- /* Standard fields: */
- TEHandle text;
- ControlHandle vScroll;
- ControlHandle hScroll;
- short fileNum;
- Boolean dirty;
- StringHandle filename;
- enum {noWindow, WButtons, WTabbedPanel, WSliders, WProgressBars, WPallette} windowKind;
- Handle witlHandle; /* Window itemlist resource */
- Handle wictHandle; /* Window item color table resource */
-
- /* Application-specific fields: */
- /* for Buttons: */
- ControlHandle OKHandle;
- ControlHandle X3DHandle;
- ControlHandle PictButtonHandle;
- ControlHandle TitledPictHandle;
- ControlHandle CheckHandle;
- Boolean CheckChecked;
- ControlHandle PictCheckHandle;
- Boolean PictCheckChecked;
- ControlHandle X3DCheckHandle;
- Boolean X3DCheckChecked;
-
- /* for TabbedPanel: */
- ControlHandle TabPanelHandle;
- short TabPanelValue;
-
- /* for Sliders: */
- ControlHandle VerticalHandle;
- ControlHandle SliderHandle;
- ControlHandle SpinnerHandle;
- ControlHandle HorizontalHandle;
- ControlHandle PictSliderHandle;
-
- /* for ProgressBars: */
- ControlHandle RectHandle;
- short RectValue;
- ControlHandle BarberHandle;
- short BarberValue;
- ControlHandle ProgressHandle;
- short ProgressValue;
-
- /* for Pallette: */
- ControlHandle ToolsHandle;
- short ToolsChoice;
-
-
- } WinInfoRec, *WinInfoPtr;
-
- typedef struct {
- Boolean hasGestalt; /* has Gestalt manager */
- Boolean hasWNE; /* has WaitNextEvent */
- Boolean hasColorQD; /* has Color QuickDraw */
- Boolean hasAppleEvents; /* has Apple Events */
- Boolean hasEditionMgr; /* has Edition Manager */
- } SysConfigRec;
-
- /* Standard vars: */
- extern Boolean quittingTime;
- extern EventRecord curEvent;
- extern WindowPtr curWindow;
- extern WinInfoPtr cur;
- extern Boolean inBackground;
- extern SysConfigRec sysConfig;
-
- /* Application-specific vars: */
-
- /*----------*/
- void InitGlobals (void);
- void SetInfo (WindowPtr window);
- void SetNewInfo (WindowPtr window);
- void DiscardInfo (WindowPtr window);
-
- #endif /* _H_Globals */
-
- /* Globals */
-